﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.backstage.GrandTickets
{
    /// <summary>
    /// BS_GrantTicket
    /// </summary>
    [Table("BS_GrantTicket")]
    public class BS_GrantTicket
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// Note
        /// </summary>
        public String Note { get; set; }

        /// <summary>
        /// 发放用户Id
        /// </summary>
        public String UserId { get; set; }

        /// <summary>
        /// 优惠券Id
        /// </summary>
        public String ValiTacketId { get; set; }

        /// <summary>
        /// 优惠券名称
        /// </summary>
        public String TicketTitle { get; set; }

        /// <summary>
        /// 优惠券代金额
        /// </summary>
        public Decimal TicketMoney { get; set; }

        /// <summary>
        /// 优惠券满减额
        /// </summary>
        public Decimal? TicketUseMoney { get; set; }

        /// <summary>
        /// 优惠券到期时间
        /// </summary>
        public DateTime TicketEndTime { get; set; }

        /// <summary>
        /// 发放数量
        /// </summary>
        public Int32 TicketNum { get; set; }

    }
}